#define _CRT_SECURE_NO_WARNINGS 1
#include"BinaryTree.h"
int i = 0;
int main()
{
	char a[18] = "ABD##E#H##CF##G##";

	BTNode*  root= BinaryTreeCreate(a,17,&i);
	printf("%d\n",BinaryTreeSize(root));
	printf("%d\n", BinaryTreeLeafSize(root));
	printf("%p\n", BinaryTreeFind(root,'C'));

	BinaryTreeInOrder(root);
	printf("\n");
	BinaryTreePrevOrder(root);
	printf("\n");
	BinaryTreePostOrder(root);
	printf("\n");
	BinaryTreeLevelOrder(root);
	printf("%d\n", BinaryTreeComplete(root));
	BinaryTreeDestory(&root);


	return 0;
}